package homework.work1;

import homework.work1.Dog;
import homework.work1.Master;
import homework.work1.Penguin;
import homework.work1.Pet;

public class Test {
  public static void main(String[] args) {

      Master master = new Master();  //创建主人类
      Pet dog1 = new Dog("小七", 90, 90, "金毛");
      Pet penguin = new Penguin("q仔",50,80,"男");

      master.feed(dog1);
      master.feed(penguin);
}
}